package com.ruoyi.system.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.domain.entity.WlwsysProject;

import java.text.ParseException;
import java.util.List;

/**
* @author 86187
* @description 针对表【wlwsys_project】的数据库操作Service
* @createDate 2023-07-19 17:34:30
*/
public interface WlwsysProjectService extends IService<WlwsysProject> {

    /**
        分页 查询 project 集合数据
     */
    List<WlwsysProject> getProjectByPageInfo(Integer pageNum,Integer pageSize,String projectId,String projectName,Long userID,String startTime,String endTime) throws ParseException;

    /**
        逻辑删除
     */
    void deleteByProjectId(String projectID);

    /**
        新增项目
     */
    void insertProject(String projectName,String projectIntroduce,String userName) throws ParseException;

    /**
         更新项目
     */
    boolean UpdateProject(String projectId,String projectName,String projectIntroduce) throws ParseException;

    /**
     获取该用户下的所有项目ID
     */
    List<String> selectProjectIdByUserId(Long userId) throws ParseException;

    /**
     * 获取该项目ID对应的用户
     */
    Long selectUserIdByProjectId(String projectId) throws ParseException;
}
